﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010BD RID: 4285
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEntityGroupInfo : IMessage<SceneEntityGroupInfo>, IMessage, IEquatable<SceneEntityGroupInfo>, IDeepCloneable<SceneEntityGroupInfo>, IBufferMessage
	{
		// Token: 0x17003621 RID: 13857
		// (get) Token: 0x0600BF78 RID: 49016 RVA: 0x00204F24 File Offset: 0x00203124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEntityGroupInfo> Parser
		{
			get
			{
				return SceneEntityGroupInfo._parser;
			}
		}

		// Token: 0x17003622 RID: 13858
		// (get) Token: 0x0600BF79 RID: 49017 RVA: 0x00204F2B File Offset: 0x0020312B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEntityGroupInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003623 RID: 13859
		// (get) Token: 0x0600BF7A RID: 49018 RVA: 0x00204F3D File Offset: 0x0020313D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEntityGroupInfo.Descriptor;
			}
		}

		// Token: 0x0600BF7B RID: 49019 RVA: 0x00204F44 File Offset: 0x00203144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityGroupInfo()
		{
		}

		// Token: 0x0600BF7C RID: 49020 RVA: 0x00204F64 File Offset: 0x00203164
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityGroupInfo(SceneEntityGroupInfo other) : this()
		{
			this.entityList_ = other.entityList_.Clone();
			this.fJHODIBBAAN_ = other.fJHODIBBAAN_.Clone();
			this.state_ = other.state_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BF7D RID: 49021 RVA: 0x00204FC2 File Offset: 0x002031C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityGroupInfo Clone()
		{
			return new SceneEntityGroupInfo(this);
		}

		// Token: 0x17003624 RID: 13860
		// (get) Token: 0x0600BF7E RID: 49022 RVA: 0x00204FCA File Offset: 0x002031CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SceneEntityInfo> EntityList
		{
			get
			{
				return this.entityList_;
			}
		}

		// Token: 0x17003625 RID: 13861
		// (get) Token: 0x0600BF7F RID: 49023 RVA: 0x00204FD2 File Offset: 0x002031D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<string, int> FJHODIBBAAN
		{
			get
			{
				return this.fJHODIBBAAN_;
			}
		}

		// Token: 0x17003626 RID: 13862
		// (get) Token: 0x0600BF80 RID: 49024 RVA: 0x00204FDA File Offset: 0x002031DA
		// (set) Token: 0x0600BF81 RID: 49025 RVA: 0x00204FE2 File Offset: 0x002031E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint State
		{
			get
			{
				return this.state_;
			}
			set
			{
				this.state_ = value;
			}
		}

		// Token: 0x17003627 RID: 13863
		// (get) Token: 0x0600BF82 RID: 49026 RVA: 0x00204FEB File Offset: 0x002031EB
		// (set) Token: 0x0600BF83 RID: 49027 RVA: 0x00204FF3 File Offset: 0x002031F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x0600BF84 RID: 49028 RVA: 0x00204FFC File Offset: 0x002031FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEntityGroupInfo);
		}

		// Token: 0x0600BF85 RID: 49029 RVA: 0x0020500C File Offset: 0x0020320C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEntityGroupInfo other)
		{
			return other != null && (other == this || (this.entityList_.Equals(other.entityList_) && this.FJHODIBBAAN.Equals(other.FJHODIBBAAN) && this.State == other.State && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF86 RID: 49030 RVA: 0x00205080 File Offset: 0x00203280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.entityList_.GetHashCode();
			num ^= this.FJHODIBBAAN.GetHashCode();
			if (this.State != 0U)
			{
				num ^= this.State.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF87 RID: 49031 RVA: 0x002050F4 File Offset: 0x002032F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF88 RID: 49032 RVA: 0x002050FC File Offset: 0x002032FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF89 RID: 49033 RVA: 0x00205108 File Offset: 0x00203308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.entityList_.WriteTo(ref output, SceneEntityGroupInfo._repeated_entityList_codec);
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.GroupId);
			}
			if (this.State != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.State);
			}
			this.fJHODIBBAAN_.WriteTo(ref output, SceneEntityGroupInfo._map_fJHODIBBAAN_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF8A RID: 49034 RVA: 0x00205184 File Offset: 0x00203384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.entityList_.CalculateSize(SceneEntityGroupInfo._repeated_entityList_codec);
			num += this.fJHODIBBAAN_.CalculateSize(SceneEntityGroupInfo._map_fJHODIBBAAN_codec);
			if (this.State != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.State);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF8B RID: 49035 RVA: 0x00205200 File Offset: 0x00203400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEntityGroupInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.entityList_.Add(other.entityList_);
			this.fJHODIBBAAN_.MergeFrom(other.fJHODIBBAAN_);
			if (other.State != 0U)
			{
				this.State = other.State;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF8C RID: 49036 RVA: 0x00205272 File Offset: 0x00203472
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF8D RID: 49037 RVA: 0x0020527C File Offset: 0x0020347C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 50U)
					{
						this.entityList_.AddEntriesFrom(ref input, SceneEntityGroupInfo._repeated_entityList_codec);
						continue;
					}
					if (num == 72U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.State = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						this.fJHODIBBAAN_.AddEntriesFrom(ref input, SceneEntityGroupInfo._map_fJHODIBBAAN_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004D26 RID: 19750
		private static readonly MessageParser<SceneEntityGroupInfo> _parser = new MessageParser<SceneEntityGroupInfo>(() => new SceneEntityGroupInfo());

		// Token: 0x04004D27 RID: 19751
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D28 RID: 19752
		public const int EntityListFieldNumber = 6;

		// Token: 0x04004D29 RID: 19753
		private static readonly FieldCodec<SceneEntityInfo> _repeated_entityList_codec = FieldCodec.ForMessage<SceneEntityInfo>(50U, SceneEntityInfo.Parser);

		// Token: 0x04004D2A RID: 19754
		private readonly RepeatedField<SceneEntityInfo> entityList_ = new RepeatedField<SceneEntityInfo>();

		// Token: 0x04004D2B RID: 19755
		public const int FJHODIBBAANFieldNumber = 15;

		// Token: 0x04004D2C RID: 19756
		private static readonly MapField<string, int>.Codec _map_fJHODIBBAAN_codec = new MapField<string, int>.Codec(FieldCodec.ForString(10U, ""), FieldCodec.ForInt32(16U, 0), 122U);

		// Token: 0x04004D2D RID: 19757
		private readonly MapField<string, int> fJHODIBBAAN_ = new MapField<string, int>();

		// Token: 0x04004D2E RID: 19758
		public const int StateFieldNumber = 11;

		// Token: 0x04004D2F RID: 19759
		private uint state_;

		// Token: 0x04004D30 RID: 19760
		public const int GroupIdFieldNumber = 9;

		// Token: 0x04004D31 RID: 19761
		private uint groupId_;
	}
}
